package com.sumainfor.pc.gmio.controller.secretary;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.PageUtils;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.gmio.service.SeChargesService;
import com.sumainfor.pc.gmio.service.SeEleMeterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 收费标准
 */
@RestController
@RequestMapping("/secretary/SeCharges")
public class SeChargesController implements Serializable {
    @Autowired
    private SeChargesService seChargesService;
    /**
     * 查询收费标准
     */
    @PostMapping("/key/getSeChargesList")
    public JsonResult getSeChargesList(@RequestBody Map<String,Object>params){
        System.out.println("接收到达参数:"+params);
        JsonResult result=new JsonResult();
        Map<String,Object> map=seChargesService.getSeChargesList(params);
        if (map!=null){
            result.put(map);
        }else{
            result.putFailed("服务器繁忙");
        }
        return result;
    }
}
